package cn.com.xiaoshoujia.activities.entity;

import java.math.BigDecimal;

/**
 * @Author: yangrui
 * @Description: 发布拼团--规则
 * @Date: 上午11:18 2017/7/27
 */
public class ActivityRules {
    private Long id; //bigint(20) NOT NULL AUTO_INCREMENT,
    private Long fkActivitiesId; //bigint(20) NOT NULL DEFAULT '-1',
    private Integer participants; //int(5) NOT NULL DEFAULT '0' COMMENT '参与人数',
    private BigDecimal price; //decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '原始单价',
    private BigDecimal discountPrice; //decimal(10,2) NOT NULL DEFAULT '0.00' COMMENT '优惠价格',
    private Integer timeLimit; //int(5) NOT NULL DEFAULT '0' COMMENT '时限（小时）',
    private String startTime; //datetime DEFAULT NULL,
    private String endTime; //datetime DEFAULT NULL,

    public void setId(Long id) {
        this.id = id;
    }

    public void setFkActivitiesId(Long fkActivitiesId) {
        this.fkActivitiesId = fkActivitiesId;
    }

    public void setParticipants(Integer participants) {
        this.participants = participants;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public void setDiscountPrice(BigDecimal discountPrice) {
        this.discountPrice = discountPrice;
    }

    public void setTimeLimit(Integer timeLimit) {
        this.timeLimit = timeLimit;
    }

    public void setStartTime(String startTime) {
        this.startTime = startTime;
    }

    public void setEndTime(String endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "ActivityRules{" +
                "id=" + id +
                ", fkActivitiesId=" + fkActivitiesId +
                ", participants=" + participants +
                ", price=" + price +
                ", discountPrice=" + discountPrice +
                ", timeLimit=" + timeLimit +
                ", startTime='" + startTime + '\'' +
                ", endTime='" + endTime + '\'' +
                '}';
    }
}
